package com.vote.admin.vo.param;

import cn.afterturn.easypoi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.io.Serializable;

@Data
@ApiModel(value = "投票活动入参")
@Builder
public class VoteParam implements Serializable {

    @ApiModelProperty(value = "编号")
    private Integer id;

    @ApiModelProperty(value = "活动名称")
    private String projectName;

    @ApiModelProperty(value = "活动描述")
    private String projectDesc;

    @ApiModelProperty("活动图片")
    private String projectImg;

    @ApiModelProperty(value = "实名投票/匿名投票")
    private String projectPublic;

    @ApiModelProperty(value = "单选/多选")
    private String projectChoice;

    @ApiModelProperty(value = "展示形式")
    private String projectShow;

    @ApiModelProperty(value = "限投次数")
    private Integer projectRule;

    @ApiModelProperty(value = "开始时间")
    @Excel(name = "开始时间", width = 20)
    private String projectStart;

    @ApiModelProperty(value = "结束时间")
    @Excel(name = "结束时间", width = 20)
    private String projectEnd;

    @Tolerate
    public VoteParam () {}

}
